﻿'
' Created by SharpDevelop.
' User: amb
' Date: 02/06/2014
' Time: 22:39
' 
' To change this template use Tools | Options | Coding | Edit Standard Headers.
'

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms
Imports JdFormsDll

Public Partial Class MainForm
	Public Sub New()
		' The Me.InitializeComponent call is required for Windows Forms designer support.
		Me.InitializeComponent()
		
		'
		' TODO : Add constructor code after InitializeComponents
		'
	End Sub
	
	Sub MainForm_Load(sender As Object, e As EventArgs)
		Dim v = [Enum].GetNames(GetType(JdFormDll.Decorator.MyFormDecoratorSettings))
		toolStripComboBox1.Items.Clear()
		toolStripComboBox1.Items.AddRange(v.ToArray())
		toolStripComboBox1.SelectedIndex = 0
	End Sub
	
	Sub ToolStripComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
		JdFormDll.Decorator.Skins.CurrentDecorator = CType(toolStripComboBox1.SelectedIndex, JdFormDll.Decorator.MyFormDecoratorSettings)
		JdFormDll.Decorator.Skins.SetDecorator(Me)
		toolStripStatusLabel1.Text = "Decorator from " + toolStripComboBox1.Text
		Me.Invalidate()
	End Sub
	
End Class


